<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
	<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
	<META HTTP-EQUIV="Expires" CONTENT="0"> 
	<title>投诉信息</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../css/font_eolqem241z66flxr.css" media="all" />
	<link rel="stylesheet" href="../../css/news.css" media="all" />
	<script src="../../layui/js/angular.js"></script>
	<script type="text/javascript" src="../../layui/layui/GetPath.js"></script>
	<script src="../../layui/layui/layui.js" charset="utf-8"></script>
	<script type="text/javascript" src="../../layui/js/fy.js"></script>
	<script type="text/javascript" src="../../layui/layui/layer.ext.js"></script>
	<script type="text/javascript" src="../../layui/lay/modules/layer.js"></script>
	<script type="text/javascript" src="../../layui/layui.js"></script>
	<script>
		layui.use('form', function(){
			var form = layui.form();  
		});
	</script>
	<!-- JQuery 的遮罩层 -->
	<style type="text/css">     
    .mask {       
            position: absolute; top: 0px; filter: alpha(opacity=60); 
            z-index: 1002; left: 0px;              
			background:url(../../layui/layui/img/jz.gif) no-repeat center rgba(0,0,0,0.5) ;
		  	background-size:30px 30px;
			background-repeat: no-repeat;
			background: 
        }     
	</style> 
</head>
<body class="childrenBody">
<div align="center" id="mask" class="mask"></div>  
<blockquote class="layui-elem-quote news_search">
			<span style="width:80%;display:inline-block;  ">
				我要投诉
			</span>
			<span   >
				<a href="javascript:;" id="fh" class="layui-btn layui-btn-danger batchDel">返回投诉、建议查看</a>
			</span>
		</blockquote>
<form class="layui-form layui-form-pane">
		 <div class="layui-form-item layui-form-text">
		    <label class="layui-form-label" style="width:140px; text-align: center;">投诉正文</label>
		    <div class="layui-input-block">
		      <textarea placeholder="请输入内容" id="zw" class="layui-textarea"></textarea>
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <a class="layui-btn" id="submit">提交</a>
  		  </div>
</form>
	<script type="text/javascript" src="../../layui/layui/jquery-3.2.1.min.js"></script>
	<script type="text/javascript">
		function s(){     
        $("#mask").css("height",$(document).height());     
        $("#mask").css("width",$(document).width());     
        $("#mask").show();     
	    }  
	    //隐藏遮罩层  
	    function h(){     
	          
	        $("#mask").hide();     
	    }  
	</script>
	<script type="text/javascript" src="../../layui/layui/layui.js"></script>
	<script>
		layui.use('layer', function(){
  			var layer = layui.layer;
		});              
	</script>
	<script type="text/javascript" src="../../layui/layui/jquery-3.2.1.min.js"></script>
	<script type="text/javascript">
		$("#submit").click(function(){
			var zw=$("#zw").val();
			if(zw!="" && zw !=null){
			s();
			$.ajax({
				url : getPath()+'/wsyyt/GRtsyjController/test',
				method : 'post',
				dataType : 'JSON',
				data: {'ZT':'1','ZW':zw},
				success : function(result) {
					h()
					var code = result.code;
					if(result.msg==null){
									layer.msg("登陆失效请重新登陆");
													setTimeout(function () {
														window.top.location.href=result.data;
													}, 1500);
													return;
					}else if(code==0){
						//layer.msg('提示：建议成功',{icon: 6});	
						layer.alert('提示：投诉成功', {
								      skin: 'layui-layer-molv' //样式类名  自定义样式
								     ,closeBtn: 1    // 是否显示关闭按钮
								      ,anim: 1 //动画类型
								     ,btn: ['确认'] //按钮
								      ,icon: 6    // icon
								     ,yes:function(){
										window.location.href='/wsyyt/page/message/message.html';
								     }});	   
					}else{				
						//layer.msg('提示：'+result.CW,{icon: 5});	
						layer.alert('提示：'+result.CW,{
								      skin: 'layui-layer-molv' //样式类名  自定义样式
								     ,closeBtn: 1    // 是否显示关闭按钮
								      ,anim: 1 //动画类型
								     ,btn: ['确认'] //按钮
								      ,icon: 5    // icon
								     ,btn2:function(){
										
								     }});	
					};
				}
			});
			}else{
				layer.alert('提示：投诉正文不能为空',{
								      skin: 'layui-layer-molv' //样式类名  自定义样式
								     ,closeBtn: 1    // 是否显示关闭按钮
								      ,anim: 1 //动画类型
								     ,btn: ['确认'] //按钮
								      ,icon: 5    // icon
								     ,btn2:function(){
										
								     }});	
			}
		});
		$("#fh").click(function(){
		window.location.href='/wsyyt/page/message/message.html';
	});
	</script>
	<script type="text/javascript" src="../../js/log.js"></script>
</body>
</html>